class Base(object):
    def test(self):
        print("----Base")


class A(Base):
    pass


class B(Base):
    def test(self):
        print("-----B")


class C(A, B):
    pass


c = C()
c.test()  # ----A

print(C.__mro__)  # 继承顺序： 广度优先
"""
(<class '__main__.C'>, <class '__main__.A'>, <class '__main__.B'>, <class '__main__.Base'>, <class 'object'>)
"""
